package com.hx;

import java.util.Random;

public class Test {
	public static void main(String[] args) {
		Random random = new Random();
		int[] a = new int[10];
		randomset(random, a);
		out(a);
		
			
	}

	/**
	 * @param a
	 */
	private static void max(int[] a) {
		int max=0;
	    for(int i=0;i<a.length;i++)
		if(a[i]>max)
			max=a[i];
	    System.out.println(max);
	}

	/**
	 * @param a
	 */
	private static void out(int[] a) {
		for (int i = 0; i < a.length; i++)
			System.out.print(a[i] + ",");
		System.out.println();
	}

	/**
	 * @param random
	 * @param a
	 */
	private static void randomset(Random random, int[] a) {
		for (int i = 0; i < a.length; i++) {
			a[i] = random.nextInt(10);
		}
	}
}
